﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DomainModel
{
    public class HolidaySaleItem:OrderItem
    {
        //gives 20% off
        public override void AddDiscount()
        {
            sub_total = sub_total * 0.8;
        }

        //buy one get one free
        public override void BuyOneGetOneFree()
        {
            quantity = quantity + 1;
        }

        //10% off all products
        public override void DailyDeal()
        {
            sub_total = sub_total * 0.9;
        }
    }
}
